﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kokomo.Mirror.CliMetadata.Signatures
{
	public class VariableSignature : Param
	{
		public ConstraintFlags constraints;

		public bool IsPinned
		{
			get { return constraints.HasFlag(ConstraintFlags.Pinned); }
		}

		public override bool Equals(object obj)
		{
			VariableSignature other = obj as VariableSignature;
			if (other == null) return false;

			bool equals =
				base.Equals(other)
				&& (this.constraints == other.constraints)
				;
			return equals;
		}
	}
}
